package cn.ywsj.ywsjmidtier.controller;

import cn.ywsj.ywsjmidtier.service.WechatAppPayFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName : WechatAppPayController
 * @Author : Lenovo
 * @Date: 2021/7/23 11:27
 * @Description :
 */
@RestController
@RequestMapping("/wechat/apppay")
public class WechatAppPayController {
    @Autowired
    private WechatAppPayFeign wechatAppPayFeign;
    @RequestMapping("/towxapppaymerge")
    public String toWxAppPaydoPostMerge(HttpServletRequest request, HttpServletResponse response){
       return wechatAppPayFeign.toWxAppPaydoPostMerge(request,response);
    }
    @RequestMapping("/towxapppay")
    public String toWxAppPaydoPost(HttpServletRequest request, HttpServletResponse response){
     return wechatAppPayFeign.toWxAppPaydoPost(request,response);
    }
    @RequestMapping("/towxrefundapppay")
    public String toWxAppReFundPaydoPost(HttpServletRequest request, HttpServletResponse response){
     return wechatAppPayFeign.toWxAppReFundPaydoPost(request,response);
    }
}
